<template>
  <app-page>
    <div class="robot_index">
      <Menu :menus="menus" @change="handleMenuChange" />
      <List :activemenus="activemenus" />
    </div>
  </app-page>
</template>

<script setup>
import Menu from './components/Menu.vue'
import List from './components/List.vue'
const activemenus = ref({})
const menus = ref([
  {
    label: '单边',
    value: 'surebets',
  },
  {
    label: '跟单',
    value: 'gendan',
  },
])

const handleMenuChange = selectedValue => {
  activemenus.value = selectedValue
}
</script>

<style lang="scss" scoped>
.robot_index {
  width: 100%;
  height: 100%;
  // background-color: #fff;
  display: flex;
}
</style>
